#!/bin/sh
bfile=/backup/orabackup/dwdb.dmp
if [[ -f $bfile ]];then
	echo "Remove|file:$bfile"
	rm -rf $bfile>/dev/null
fi
#echo backup
/u01/app/oracle/product/11.2.0/db_1/bin/expdp dt/oracle123oracle schemas=dt directory=DATEBACKUP dumpfile =dwdb.dmp
#upload
/usr/bin/java -jar /mn/run.jar cmd=upload endpoint=https://oss-cn-shenzhen.aliyuncs.com accessKeyId=LTAIboWHZGLHO5W9 accessKeySecret=hIsZ0I4N9jnnZRcUEfdEUHCxpT8FoB bucketName=dwbackup key=dwdb/dwdb.dmp uploadFile=/backup/orabackup/dwdb.dmp
exit 0
